#ifndef MYTHREAD_H
#define MYTHREAD_H

#include <QObject>
#include<QTcpServer>
#include<QTcpSocket>
class MyThread : public QObject
{
    Q_OBJECT
public:
    explicit MyThread(QTcpSocket *socket1, QObject *parent = nullptr);

    void working();
signals:

public slots:


private:
    int count;//统计连接的次数
    QTcpSocket *socket;
};

#endif // MYTHREAD_H
